import java.util.Random;
import java.util.Scanner;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        Random rand=new Random();

        int a;
        int b=rand.nextInt(100)+1;
        while(true){
            a=sc.nextInt();
            if(a>b){
                System.out.println("猜大了");
            }else if(a<b){
                System.out.println("猜小了");
            }else if(a==b){
                System.out.println("猜对了");
                break;
            }
        }
    }


    public static void main3(String[] args) {
        String s = scanner.nextLine();
        Solution solution = new Solution();
        System.out.println(solution.isPalindrome(s));
    }

    public static void main2(String[] args) {
        String s = scanner.nextLine();
        int n = s.length();
        int sum = 0;

        for(int i = 0;i < n;i++){
            char c = s.charAt(i);
            sum++;
            if(c == ' '){
                sum = 0;
            }
        }
        System.out.print(sum);
    }

    public static void main1(String[] args) {
         String s = scanner.nextLine();
         Solution1 solution = new Solution1();
         System.out.println(solution.firstUniqChar(s));
    }
}

class Solution {
    public boolean isPalindrome(String s) {
        int n = s.length();
        StringBuffer stringBuffer = new StringBuffer();
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);
            if (c >= 'A' && c <= 'Z') {
                stringBuffer.append(Character.toLowerCase(c));
            } else if (c >= 'a' && c <= 'z') {
                stringBuffer.append(c);
            } else if (c >= '0' && c <= '9') {
                stringBuffer.append(c);
            }
        }
        StringBuffer stringBuffer1 = new StringBuffer(stringBuffer).reverse();
        return stringBuffer.toString().equals(stringBuffer1.toString());
    }
}

class Solution1 {
    public int firstUniqChar(String s) {
        int n = s.length();
        int[] arr = new int[26];
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);
            arr[c - 'a']++;
        }
        for (int i = 0; i < n; i++) {
            char c = s.charAt(i);
            if (arr[c - 'a'] == 1) {
                return i;
            }
        }
        return -1;
    }
}
//        boolean flag = false;
//        int min = 1000000;
//        for (int i = 0; i < 26; i++) {
//            if(arr[i] == 1){
//                flag = true;
//                int m = s.indexOf(i + 'a');
//                if(m<min){
//                    min = m;
//                }
//            }
//        }
//        if(flag){
//            return min;
//        }else {
//            return -1;
//        }
//    }
//}